import axios from '@/utils/axios';

/** 封装GET方法 */
function get(url: string, params?: any): Promise<any> {
  return axios.get(url, { params });
}

/** 封装POST方法 */
function post(url: string, data?: any): Promise<any> {
  return axios.post(url, data);
}

export { get, post };
